<?php
if(!defined('IN_ORA')) {
	exit('Access Denied');
}
$GLOBALS['__msg_tpl__'] = "admin/msg.html";
session_start();
if(!isset($_SESSION["admin"])){
	exit('Access Denied');
}
$act = $GLOBALS['act'];
$GLOBALS['tpl']->assign('act',$act);

////////////////
if($act == 'list'){
	$GLOBALS['tpl']->assign('apps',$GLOBALS['db']->getAll('select * from '.tn('app').' order by app_id desc'));
}
$GLOBALS['tpl']->display("admin/app.html");
?>